package com.ap.core.util;

/**
 * Simple implementation of the Transformer interface that turns an object into a string using its toString() method.
 * @param <T> The type of the object to be transformed.
 */
public class ToStringTransformer<T> implements Transformer<T, String> {

    @Override
    public String transform(T original) {
        return original.toString();
    }

    public static <T> ToStringTransformer<T> toStringTransformer(){
        return new ToStringTransformer<>();
    }
}
